import { router } from 'expo-router'
import { Button, SafeAreaView, Text, View } from 'react-native'

import { useAuth } from '~/src/hooks/useAuth'

const LoginPage2 = () => {
  const { accessToken, login } = useAuth()
  return (
    <SafeAreaView>
      <View>
        <Text>Login2</Text>
        <Button
          title="Login"
          onPress={() => {
            login('ss')
            router.replace('/')
          }}
        />
      </View>
    </SafeAreaView>
  )
}

export default LoginPage2
